// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-5-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'updateman', 'formitem13', 'formitem11', 'formitem12', 'formitem15', 'color', 'formitem1', 'formitem', 'formitem3', 'formitem4', 'formitem2', 'formitem7', 'formitem8', 'formitem5', 'formitem6', 'formitem18', 'ibizsample0001id'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizsample0001id;
    }
    set srfkey(value: any) {
        this.$DO.ibizsample0001id = value;
    }
    get srfmajortext() {
        return this.$DO.ibizsample0001name;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizsample0001name = value;
    }
    get updateman() {
        return this.$DO.field12;
    }
    set updateman(value: any) {
        this.$DO.field12 = value;
    }
    get formitem13() {
        return this.$DO.field03;
    }
    set formitem13(value: any) {
        this.$DO.field03 = value;
    }
    get formitem11() {
        return this.$DO.field03;
    }
    set formitem11(value: any) {
        this.$DO.field03 = value;
    }
    get formitem12() {
        return this.$DO.field09;
    }
    set formitem12(value: any) {
        this.$DO.field09 = value;
    }
    get formitem15() {
        return this.$DO.updatedate;
    }
    set formitem15(value: any) {
        this.$DO.updatedate = value;
    }
    get color() {
        return this.$DO.color;
    }
    set color(value: any) {
        this.$DO.color = value;
    }
    get formitem1() {
        return this.$DO.ibizsample0002name;
    }
    set formitem1(value: any) {
        this.$DO.ibizsample0002name = value;
    }
    get formitem() {
        return this.$DO.field04;
    }
    set formitem(value: any) {
        this.$DO.field04 = value;
    }
    get formitem3() {
        return this.$DO.field14;
    }
    set formitem3(value: any) {
        this.$DO.field14 = value;
    }
    get formitem4() {
        return this.$DO.field09;
    }
    set formitem4(value: any) {
        this.$DO.field09 = value;
    }
    get formitem7() {
        return this.$DO.picture;
    }
    set formitem7(value: any) {
        this.$DO.picture = value;
    }
    get formitem5() {
        return this.$DO.picture;
    }
    set formitem5(value: any) {
        this.$DO.picture = value;
    }
    get formitem6() {
        return this.$DO.field02;
    }
    set formitem6(value: any) {
        this.$DO.field02 = value;
    }
    get formitem18() {
        return this.$DO.updatedate;
    }
    set formitem18(value: any) {
        this.$DO.updatedate = value;
    }
    get ibizsample0001id() {
        return this.$DO.ibizsample0001id;
    }
    set ibizsample0001id(value: any) {
        this.$DO.ibizsample0001id = value;
    }
    // 界面主键标识
    get ibizsample0001() {
        return this.$DO.ibizsample0001id;
    }

    set ibizsample0001(value: any) {
        this.$DO.ibizsample0001id = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }
    get formitem2() {
        return this.$DO.formitem2;
    }

    set formitem2(value: any) {
        this.$DO.formitem2 = value;
    }
    get formitem8() {
        return this.$DO.formitem8;
    }

    set formitem8(value: any) {
        this.$DO.formitem8 = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            field12: this.$DO.field12,
field03: this.$DO.field03,
field09: this.$DO.field09,
updatedate: this.$DO.updatedate,
color: this.$DO.color,
ibizsample0002name: this.$DO.ibizsample0002name,
field04: this.$DO.field04,
field14: this.$DO.field14,
picture: this.$DO.picture,
field02: this.$DO.field02,
ibizsample0001id: this.$DO.ibizsample0001id,
ibizsample0001name: this.$DO.ibizsample0001name,
formitem2: this.formitem2,
formitem8: this.formitem8,
        }
	}

}